package kr.saeildamil.androidstudy.ch13;

import kr.saeildamil.androiddforstudy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch13Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch13_main);
	}
	
	public void mOnClick(View v) {
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch13_btn01:
			intent.setClass(this, ProgressBarTest.class);
			break;
		case R.id.ch13_btn02:
			intent.setClass(this, SeekBarTest.class);
			break;
		case R.id.ch13_btn03:
			intent.setClass(this, ProgressTitleTest.class);
			break;
		case R.id.ch13_btn04:
			intent.setClass(this, ProgressTitleTest2.class);
			break;
		case R.id.ch13_btn05:
			intent.setClass(this, RatingBarTest.class);
			break;
		case R.id.ch13_btn06:
			intent.setClass(this, DateTimeTest.class);
			break;
		case R.id.ch13_btn07:
			intent.setClass(this, PickerDialog.class);
			break;
		case R.id.ch13_btn08:
			intent.setClass(this, AutoComplete.class);
			break;
		case R.id.ch13_btn09:
			intent.setClass(this, SlidingDrawerTest.class);
			break;
		case R.id.ch13_btn10:
			intent.setClass(this, WebViewTest.class);
			break;
		case R.id.ch13_btn11:
			intent.setClass(this, SwitchTest.class);
			break;
		case R.id.ch13_btn12:
			intent.setClass(this, SpaceTest.class);
			break;
		case R.id.ch13_btn13:
			intent.setClass(this, ListPopupWindowTest.class);
			break;
		case R.id.ch13_btn14:
			intent.setClass(this, ScrollViewTest.class);
			break;
		case R.id.ch13_btn15:
			intent.setClass(this, HScrollViewTest.class);
			break;
		}
		startActivity(intent);
	}
}
